function GTabOrders(prefix, container, array, index) {
  this._prefix = prefix;
  this._container = container;
  this._array = array;
  this._index = index;
  
  this._createElements();
}

GTabOrders.prototype._createElements = function() {
  var table, tr, td, _self = this;
  
  DOMUtils.removeChildElements(this._container);
  
  table = document.createElement('table');
  table.cellPadding = 0;
  table.cellSpacing= 0 ;
  table.border=0;
  tr = table.insertRow(-1);
  this._container.appendChild(table);
  
  for (var i = 0, il = this._array.length; i < il; i++) {
    var item =  this._array[i];
    
    td = tr.insertCell(-1);
    td.style.backgroundImage = (this._index == i) ? 'url(images/pageasst/pagecustomer/tableft_light.png)' : 'url(images/pageasst/pagecustomer/tableft.png)';
    td.style.backgroundRpeat = 'no-repeat';
    td.style.width = '10px';
    td.style.height = '24px';
    
    td = tr.insertCell(-1);
    td.style.width = '';
    td.style.height = '24px';
    td.style.textAlign = 'center';
    td.style.cursor = 'pointer';
    td.style.backgroundImage = (this._index == i) ? 'url(images/pageasst/pagecustomer/tabmiddle_light.png)' : 'url(images/pageasst/pagecustomer/tabmiddle.png)';
    td.style.backgroundRpeat = 'repeat';
    td.appendChild(document.createTextNode(((item.type == '') ? 'NEW' : item.type) + '-' + (i + 1)));
    td.id = this._prefix + '_' + i;
    
    td = tr.insertCell(-1);
    td.style.backgroundImage = (this._index == i) ? 'url(images/pageasst/pagecustomer/tabright_light.png)' : 'url(images/pageasst/pagecustomer/tabright.png)';
    td.style.backgroundRpeat = 'no-repeat';
    td.style.width = '10px';
    td.style.height = '24px';
  }
  
};